Project Deletion Endpoint
Overview
This endpoint allows users to delete a specific project and all its associated resources.
Request Details
HTTP Method
DELETE
Route
/api/users/[user_id]/projects/[project_id]
Route Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| user_id | integer | Yes | The ID of the authenticated user |
| project_id | integer | Yes | The ID of the project |
Headers
| Header | Value | Required | Description |
|---|---|---|---|
| Accept | application/json | Yes | Specifies the response format |
| Cookie | neptun-session | Yes | Session authentication cookie |
Query Parameters
No query parameters required.
Request Body
No request body required.
Response Format
Response Status Codes
| Status Code | Description |
|---|---|
| 200 | Successfully deleted project |
| 401 | Unauthorized (invalid or missing session) |
| 403 | Forbidden (user_id mismatch) |
| 404 | Project not found |
| 500 | Server error |